package com.lin.missyou.api.v1;

import com.lin.missyou.exception.http.NotFoundException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


@RestController
@RequestMapping("v1/banner")
public class BannerController {
    //热重启条件：首先要编译项目---->也就是target更新,监听到target变化后才会帮助我们 “热重启”

    @GetMapping("/test")
    public String test(HttpServletResponse response) throws Exception {
//        response.getWriter().write("Hello,七月");
        throw new Exception("1234ew");
//        return "Hello,七月";
    }

}
